﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using SimpleInjector;
using System.Reflection;
using System.Web.Mvc;
using SimpleInjector.Integration.Web.Mvc;
using CML.Services.Interfaces;
using CML.Services.Implementations;

namespace CML.Site.App_Start
{
	public class DependencyConfig
	{
		public static void RegisterDependencies()
		{
			var c = CML.Configuration.Depencency.RegisterDependencies();
			c.RegisterMvcControllers(Assembly.GetExecutingAssembly());
			c.RegisterMvcIntegratedFilterProvider();
			c.Verify();
			DependencyResolver.SetResolver(new SimpleInjectorDependencyResolver(c));
		}
	}
}